package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_coupon_use", autoSave = true)
public class LogCouponUse {

    @FieldTypeAnnotation(isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "代金券编号")
    private long couponItemId;

    @FieldTypeAnnotation(desc = "代金券道具编号")
    private int couponGoodsId;

    @FieldTypeAnnotation(desc = "代金券累计数量")
    private long totalCount;

    @FieldTypeAnnotation(desc = "代金券当前数量")
    private long count;

    @FieldTypeAnnotation(desc = "身份等级")
    private int titleLv;

    @FieldTypeAnnotation(desc = "购买商品")
    private int mallId;

    @FieldTypeAnnotation(desc = "实际付费")
    private String price;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogCouponUse(long userId, long couponItemId, int couponGoodsId, long totalCount, long count, int titleLv, int mallId, String price) {
        this.userId = userId;
        this.couponItemId = couponItemId;
        this.couponGoodsId = couponGoodsId;
        this.totalCount = totalCount;
        this.count = count;
        this.titleLv = titleLv;
        this.mallId = mallId;
        this.price = price;
        logTime = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getCouponItemId() {
        return couponItemId;
    }

    public void setCouponItemId(long couponItemId) {
        this.couponItemId = couponItemId;
    }

    public int getCouponGoodsId() {
        return couponGoodsId;
    }

    public void setCouponGoodsId(int couponGoodsId) {
        this.couponGoodsId = couponGoodsId;
    }

    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public int getTitleLv() {
        return titleLv;
    }

    public void setTitleLv(int titleLv) {
        this.titleLv = titleLv;
    }

    public int getMallId() {
        return mallId;
    }

    public void setMallId(int mallId) {
        this.mallId = mallId;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
